class Employee:
    def __init__(self,name,salary):
        self.name = name
        self.__salary = salary
    
    @property
    def salary(self):
        print(f"salary是{self.__salary}")
        return self.__salary
    
    @salary.setter
    def salary(self,value):
        print(f"salary被修改为{value}")
        self.__salary=value

emp1=Employee('zhangsan',5000)
emp1.salary=50000
emp2=Employee('lisi',6000)